package com.oocl.euc.core.maintenance.model;

import javax.persistence.Column;
import java.io.Serializable;
public class SubCategoryID implements Serializable {

    private static final long serialVersionUID = 1L;

    private String categoryID;
    private String subCategoryID;

    @Column(name = "CATEGORY_ID", length = 20)
    public String getCategoryID() {
        return categoryID;
    }

    public void setCategoryID(String categoryID) {
        this.categoryID = categoryID;
    }

    @Column(name = "SUBCATEGORY_ID", length = 20)
    public String getSubCategoryID() {
        return subCategoryID;
    }

    public void setSubCategoryID(String subCategoryID) {
        this.subCategoryID = subCategoryID;
    }

    public int hashCode() {
        int result;
        result = categoryID.hashCode();
        result = 29 * result + categoryID.hashCode();
        result = 29 * result + subCategoryID.hashCode();
        return result;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (null == obj) {
            return false;
        }
        if (!(obj instanceof SubCategoryID)) {
            return false;
        }
        final SubCategoryID pko = (SubCategoryID) obj;
        if (null == categoryID || !categoryID.equals(pko.categoryID)) {
            return false;
        }
        if (null == subCategoryID || !subCategoryID.equals(pko.subCategoryID)) {
            return false;
        }
        return true;
    }
}
